<!--
 * new page
 * @author: sunYihui
 * @since: 2024-09-03
 * sun.vue
-->
<template>
    <div class="sun_container">
      孙1:{{ sun1.name }}：{{ sun1.price }}
    </div>
  </template>
  
  <script setup lang="ts">
  import { inject } from 'vue'
  const sun1:any = inject('car')
  console.log(sun1)
  </script>
  
  <style scoped>
  .sun_container{
      width: 800px;
      height: 100px;
      background-color: green;
  }
  </style>
  